package com.application.chiettinhdienluc.model;

import android.content.ContentResolver;
import android.net.Uri;

import com.application.chiettinhdienluc.data.GlobalData;

public class NguoiDungModel {
	public static final String NGUOIDUNG_TABLE_NAME = "D_NGUOIDUNG";

	/**
	 * Content type for account / sip profile
	 */
	public final static String NGUOIDUNG_CONTENT_TYPE = GlobalData.BASE_DIR_TYPE
			+ ".D_NGUOIDUNG";
	/**
	 * Item type for account / sip profile
	 */
	public final static String NGUOIDUNG_CONTENT_ITEM_TYPE = GlobalData.BASE_ITEM_TYPE
			+ ".D_NGUOIDUNG";

	public final static Uri NGUOIDUNG_ID_URI_BASE = Uri
			.parse(ContentResolver.SCHEME_CONTENT + "://"
					+ GlobalData.AUTHORITY + "/" + NGUOIDUNG_TABLE_NAME + "/");

	public static final String FIELD_NGUOIDUNG_ID = "id";
	public static final String FIELD_TEN_DANG_NHAP = "TEN_DANG_NHAP";
	public static final String FIELD_TEN_NGUOI_DUNG = "TEN_NGUOI_DUNG";
	public static final String FIELD_MAT_KHAU = "MAT_KHAU";
	public static final String FIELD_PHAN_QUYEN = "PHAN_QUYEN";
	public static final String FIELD_MA_DVIQLY = "MA_DVIQLY";

	public final static String[] NGUOIDUNG_FULL_PROJECTION = {
			NguoiDungModel.FIELD_TEN_DANG_NHAP, NguoiDungModel.FIELD_TEN_NGUOI_DUNG,
			NguoiDungModel.FIELD_MAT_KHAU, NguoiDungModel.FIELD_PHAN_QUYEN,
			NguoiDungModel.FIELD_MA_DVIQLY };

	// Empty constructor
	public NguoiDungModel() {

	}
	public NguoiDungModel(String _tendangnhap, String _tennguoidung, String _matkhau, String _phanquyen, String _maDV) {
		this._TenDangNhap = _tendangnhap;
		this._TenNguoiDung = _tennguoidung;
		this._MatKhau = _matkhau;
		this._PhanQuyen = _phanquyen;
		this._MaDonViQuanLy = _maDV;

	}

	private String _TenDangNhap;
	private String _TenNguoiDung;
	private String _MatKhau;
	private String _PhanQuyen;
	private String _MaDonViQuanLy;

	public String get_TenDangNhap() {
		return _TenDangNhap;
	}
	public void set_TenDangNhap(String _TenDangNhap) {
		this._TenDangNhap = _TenDangNhap;
	}
	public String get_TenNguoiDung() {
		return _TenNguoiDung;
	}
	public void set_TenNguoiDung(String _TenNguoiDung) {
		this._TenNguoiDung = _TenNguoiDung;
	}
	public String get_MatKhau() {
		return _MatKhau;
	}
	public void set_MatKhau(String _MatKhau) {
		this._MatKhau = _MatKhau;
	}
	public String get_PhanQuyen() {
		return _PhanQuyen;
	}
	public void set_PhanQuyen(String _PhanQuyen) {
		this._PhanQuyen = _PhanQuyen;
	}
	public String get_MaDonViQuanLy() {
		return _MaDonViQuanLy;
	}
	public void set_MaDonViQuanLy(String _MaDonViQuanLy) {
		this._MaDonViQuanLy = _MaDonViQuanLy;
	}
	
	private String _MaNVien;
	public String get_MaNVien() {
		return _MaNVien;
	}
	public void set_MaNVien(String _MaNVien) {
		this._MaNVien = _MaNVien;
	}

}
